#ifndef __WATCHPOINT_H__
#define __WATCHPOINT_H__

#include "common.h"

typedef struct watchpoint {
	int NO;
    uint32_t new_val;//用于存储监视点的当前值
	uint32_t old_val;//用于存储监视点的旧值
    char *expr;//用于存储监视点的表达式字符串（如表达式或变量名称）
	struct watchpoint *next;

	/* TODO: Add more members if necessary */


} WP;

int set_watchpoint(char *e);
bool delete_watchpoint(int NO);
void list_watchpoint();
WP* scan_watchpoint();

#endif

